package com.lagou.edu.authority.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lagou.edu.authority.entity.RoleMenu;

import java.util.Set;

/**
 * TODO
 *
 * @author lm
 * @since 2021/11/10 17:51
 */
public interface IRoleMenuService extends IService<RoleMenu> {
    Set<Integer> getMenuIdListByRoleIds(Set<Integer> roleIds);

    /**
     * 删除角色关联的菜单
     *
     * @param roleId
     * @param needToDelMenus
     * @return
     */
    Boolean removeRoleMenuIdList(Integer roleId, Set<Integer> needToDelMenus);

    /**
     * 根据角色ID删除角色关联菜单
     *
     * @param roleId 角色ID
     * @return 删除结果
     */
    Boolean removeByRoleId(Integer roleId);
}
